import {requestApi} from '@/utils/request'
import type { editPersonalResponse } from '@/types/personal'

// 编辑个人资料
type editPersonalApi = {
    nickname:string,
    gender:string,
    birthday:string,
    city:string,
    avatarUrl:string,
    backdrop:string,
}
export const editPersonalAPI = (data:editPersonalApi) => {
    return requestApi<editPersonalResponse>({
        url:'/modify-the-user',
        method:'POST',
        data
    })
}